package com.fulu.javabase.datatype;

public class DataTypeTest {
    public static void main(String[] args) {
        byte bb = (byte) 1;
        int a = 1;
        short s = 1;
        long l = 1L;
        float f = 1f;
        double d = 1.0;
        char c = 'c';
        boolean b = true;

        System.out.println("Byte:" + Byte.SIZE+" bit,"+(Byte.SIZE / 8) + " 字节");
        System.out.println("Integer:" + Integer.SIZE+" bit,"+(Integer.SIZE / 8) + " 字节");
        System.out.println("Short:" + Short.SIZE+" bit,"+(Short.SIZE / 8) + " 字节");
        System.out.println("Long:" + Long.SIZE+" bit,"+(Long.SIZE / 8) + " 字节");
        System.out.println("Float:" + Float.SIZE+" bit,"+(Float.SIZE / 8) + " 字节");
        System.out.println("Double:" + Double.SIZE+" bit,"+(Double.SIZE / 8) + " 字节");
        System.out.println("Character:" + Character.SIZE+" bit,"+(Character.SIZE / 8) + " 字节");



    }
}
